#!/bin/bash

workdir=/home/ceph-deploy.d/

cd $workdir

cephlist="${workdir}/cephlist.txt"
for ip in $(cat $cephlist);do
    echo -----$ip----- 
    ssh $ip sh $workdir/remove-node-osd.sh
done

